package com.test.server.server.impl;

import com.test.server.bean.Customer;
import com.test.server.server.CustomerService;
import com.test.server.dao.CustomerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("customerService")
public class CustomerServiceImpl  implements CustomerService {
    @Autowired
    private CustomerDao customerDao;

    @Override
    public List<Customer> findByCustomerState(Integer customerState) {
        return this.customerDao.findByCustomerState(customerState);
    }
}
